package com.example.administrator.swredeem.adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.example.administrator.swredeem.R;
import com.example.administrator.swredeem.view.recyclerview.BaseQuickAdapter;
import com.example.administrator.swredeem.view.recyclerview.BaseViewHolder;

import java.util.List;

public class Adapting extends BaseQuickAdapter<Object> {
    public Adapting(List<Object> data) {
        super(R.layout.activity_photogrid_item, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, Object item) {
        Glide.with(mContext).load(item).into((ImageView) helper.getView(R.id.img_photo));
    }
}
